.class public Lcom/instagram/android/feed/ui/l;
.super Ljava/lang/Object;
.source "ViewTranslationUtil.java"


# direct methods
.method public static a(Landroid/view/View;I)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 14
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xb

    if-lt v0, v1, :cond_0

    .line 15
    invoke-static {p0, p1}, Lcom/instagram/android/feed/ui/l;->b(Landroid/view/View;I)V

    .line 21
    :goto_0
    return-void

    .line 16
    :cond_0
    if-nez p1, :cond_1

    .line 17
    invoke-virtual {p0}, Landroid/view/View;->clearAnimation()V

    goto :goto_0

    .line 19
    :cond_1
    invoke-static {p0, p1}, Lcom/instagram/android/feed/ui/l;->c(Landroid/view/View;I)V

    goto :goto_0
.end method

.method private static b(Landroid/view/View;I)V
    .locals 1
    .parameter
    .parameter
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .prologue
    .line 25
    int-to-float v0, p1

    invoke-virtual {p0, v0}, Landroid/view/View;->setY(F)V

    .line 26
    return-void
.end method

.method private static c(Landroid/view/View;I)V
    .locals 10
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    const/4 v9, 0x1

    const/4 v1, 0x0

    .line 29
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    int-to-float v6, p1

    int-to-float v8, p1

    move v3, v1

    move v4, v2

    move v5, v1

    move v7, v1

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 39
    const-wide/16 v1, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/TranslateAnimation;->setDuration(J)V

    .line 40
    invoke-virtual {v0, v9}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 41
    invoke-virtual {v0, v9}, Landroid/view/animation/TranslateAnimation;->setFillBefore(Z)V

    .line 42
    invoke-virtual {v0, v9}, Landroid/view/animation/TranslateAnimation;->setFillEnabled(Z)V

    .line 44
    invoke-virtual {p0}, Landroid/view/View;->clearAnimation()V

    .line 45
    invoke-virtual {p0, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 46
    return-void
.end method
